package com.aabte.server.config.bean;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;

@Data
@Setter
@Getter
public class User {
    @Pattern(regexp = "^[a-zA-Z_][a-zA-Z_0-9]{5,15}", message = "用户名格式不正确！")
    private String username;
    private String password;
    private String name;
    private String age;
    private String sex;
}
